include_directories(${PROJECT_BINARY_DIR}/src/gui)
include_directories(${PROJECT_SOURCE_DIR}/src/app)
include_directories(${PROJECT_SOURCE_DIR}/src/3rdParty)
include_directories(${PROJECT_SOURCE_DIR}/src/3rdParty/qcustomplot)

set(GUI_UIC_SRCS       
    crashdialog.ui
    monitor.ui
    logindlg.ui
    plottemperature.ui    
    logdialog.ui
    logfulldialog.ui
    ploto2.ui
    plotpressure.ui
    plottemperaturemonitor.ui
    dialoglasertest.ui)
set(GUI_HEADER_SRCS
    #appearance.h
    crashdialog.h
    monitor.h
    logindlg.h
    plottemperature.h    
    logdialog.h
    logfulldialog.h
    ploto2.h
    plotpressure.h
    plottemperaturemonitor.h
    dialoglasertest.h)
set(GUI_CPP_SRCS
    #appearance.cpp
    crashdialog.cpp
    monitor.cpp
    logindlg.cpp
    plottemperature.cpp    
    logdialog.cpp
    logfulldialog.cpp
    ploto2.cpp
    plotpressure.cpp
    plottemperaturemonitor.cpp
    dialoglasertest.cpp)

qt5_wrap_ui(generated_Gui_UIC ${GUI_UIC_SRCS})

add_library(HIMgui ${generated_Gui_UIC}
    ${GUI_HEADER_SRCS}
    ${GUI_CPP_SRCS})

target_link_libraries(HIMgui HIMosg HIMapp HIMlog HIMqcustomplot Qt5::Widgets)
